<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>富文本编辑器批量上传图片</title>
<link rel="stylesheet" href="/static/css/wangEditor.min.css" />
</head>
<body>
	<div id="editor"></div>
	
	
	
	<script type="text/javascript" src="/static/js/wangEditor.min.js"></script>
	<script type="text/javascript" src="/static/js/jQuery-3.4.1.js"></script>
	<script>
		$(function(){
			 
	        var E = window.wangEditor;
	        var editor = new E( document.getElementById('editor') );
	        //自定义上传文件名称
	        editor.customConfig.uploadFileName = 'productImage';
	    	 // 上传图片到服务器
	        editor.customConfig.uploadImgServer = '/uploadImage';
	        
	        
	        editor.create()
			
		});
	
	</script>
</body>
</html>